package com.nit.lab.vote.dto.vote;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class ProjectDTO {
    private Long key;
    private Long projectId;
    private String projectName;
    private String sponsor;
    private Long projectType;
    private Long maxVote;
    private Long state;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;
    private Long voted;

    public ProjectDTO() {
    }

    public ProjectDTO(Long key, Long projectId, String projectName, String sponsor, Long projectType, Long maxVote, Long state, Date date, Date gmtCreate) {
        this.key = key;
        this.projectId = projectId;
        this.projectName = projectName;
        this.sponsor = sponsor;
        this.projectType = projectType;
        this.maxVote = maxVote;
        this.state = state;
        this.date = date;
        this.gmtCreate = gmtCreate;
    }

    public Long getKey() {
        return key;
    }

    public void setKey(Long key) {
        this.key = key;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getSponsor() {
        return sponsor;
    }

    public void setSponsor(String sponsor) {
        this.sponsor = sponsor;
    }

    public Long getProjectType() {
        return projectType;
    }

    public void setProjectType(Long projectType) {
        this.projectType = projectType;
    }

    public Long getMaxVote() {
        return maxVote;
    }

    public void setMaxVote(Long maxVote) {
        this.maxVote = maxVote;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getVoted() {
        return voted;
    }

    public void setVoted(Long voted) {
        this.voted = voted;
    }
}
